From mint-bounce@lists.fishpool.fi Thu Jul 23 13:37:08 2009 X-Authenticated: #3276113 X-Provags-ID: V01U2FsdGVkX1+vwDxwStSvGCEwkYSLbitFYjJV3vKhQkGh61nUBz iQViUln2PM90Jh From: Gerhard Stoll To: MiNT-List Subject: Re: [MiNT] Highwire edit Date: Thu, 23 Jul 2009 19:06:37 +0200 Message-Id: <3331220797.1836019491@[192.168.178.12]> Mime-Version: 1.0 User-Agent: Mieze/1.7b8-16012007 Reply-To: gerhard_stoll@gmx.de In-Reply-To: <20090723143553.2tznvkixsgogosc8@pop.freeola.net> References: <004817e1.019ad6d61bb6@smtp.freeola.net> <4A6421E4.4030706@freesbee.fr> <20090722143357.shzph6ag9w4840so@pop.freeola.net> <20090723143553.2tznvkixsgogosc8@pop.freeola.net> Content-Type: text/plain; charset=US-ASCII; format=flowed X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: gerhard_stoll@gmx.de Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n6NHb3YD019918 p.slegg@scubadivers.co.uk wrote: > I'm not a great user of C so I don't understand the purpose of the > last line. Is it not the same as: > > ascii_code = nkey; No, with ascii_code = nkey & 0x00FF; you get only the bits 0 to 7 form nkey. The bits 0 to 15 are zero (Bitwise And Operator). > Also, QED uses NK_CLRHOME, NK_UP, NK_DOWN etc. Are these defined in > a standard lib ? No, they are from the cflib lib. Because that lib use the NKCC lib from Harald Siegmund[1]. This lib translate the scancodes from different keyboards to on system. Gerhard [1] http://www.smund.de/download.html